package com.imooc.service;

import com.imooc.pojo.SaveModel;
import com.imooc.pojo.SpiderNoModel;

import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface DumpFileService {

    /**
     * 保存信息
     * @param spiderNoModel
     * @return
     */
    int saveSpiderNo(SpiderNoModel spiderNoModel);

    /**
     * 通过id获取
     * @param spiderNoModel
     * @return
     */
    SpiderNoModel getSpiderNo(String spiderNoModel);

    Map<String, Integer> exportDownLoad(HttpServletResponse response, String url, String procectId, int splitNum, List<SaveModel> list, Map<String, Integer> param);
}
